<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table id="tbl">
    <tr>
        <td>姓名</td>
        <td>年龄</td>
        <td>性别</td>
        <td>性别</td>
        <td>编辑</td>
    </tr>
</table>
<button>添加</button>
<form id="ff">
    <input type="text" id="uname">
    <input type="button" onclick="addtr()" value="确认">
    <!--这个按钮不会提交--><!--按钮类型：submit刷新-->

    <!--下拉菜单-->
    <select name="duanwei" id="">
        <option value="青铜">青铜</option>
        <option value="黄金">黄金</option>
        <option value="白银">白银</option>
        <option value="王者">王者</option>
    </select>
</form>
<script>
    var tbl = document.getElementById('tbl');
    var num=0;
    ff.display=none;
    function addtr() {
        var uname = document.getElementById('uname');
        var str=
        tbl.innerHTML +=str;
    }
    function del(e){
        var tr=document.getElementById("haha"+e);
        tr.remove();
    }
   /* 作业：表单一开始就是隐藏的
点添加表单才会出现*/


</script>
</body>
</html>